<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html" %>
<%@ taglib prefix="bean" uri="http://struts.apache.org/tags-bean" %>
<%@ taglib prefix="logic" uri="http://struts.apache.org/tags-logic" %>

<html:html>
	<BR/>
	<BR/>

	<logic:notPresent name="TITRE" scope="request">
			<head>
				<title>Erreur</title>
			</head>
			<body>
				<div align=center>
						Une erreur c'est produite.
						<BR/>
					</div>
			</body>		
			<BR/>			
	</logic:notPresent>
	
	<logic:notPresent name="MESSAGEINFO" scope="request">
			<head>
				<title>Erreur</title>
			</head>
			<body>
				<div align=center>
						Aucun message d'erreur n'est disponible.
						<BR/>
					</div>
			</body>		
			<BR/>			
	</logic:notPresent>
	
	<logic:notPresent name="LIENS" scope="request">
			<head>
				<title>Erreur</title>
			</head>
			<body>
				<div align=center>
						<logic:present name="departement" scope="request">
						<p><a href="/ProjetALD/accueilDep.do">Retour</a></p>
						</logic:present>
						
						<logic:present name="etudiant" scope="request">
						<p><a href="/ProjetALD/accueilEtu.do">Retour</a></p>
						</logic:present>
						
						<logic:present name="entreprise" scope="request">
						<p><a href="/ProjetALD/accueilEnt.do">Retour</a></p>
						</logic:present>
						
						<logic:notPresent name="departement" scope="request">
							<logic:notPresent name="etudiant" scope="request">						
								<logic:notPresent name="entreprise" scope="request">
									<p><a href="/ProjetALD/vues/index.jsp">Retour</a></p>
								</logic:notPresent>
							</logic:notPresent>
						</logic:notPresent>
					</div>
			</body>		
			<BR/>			
	</logic:notPresent>

	<logic:present name="TITRE" scope="request">
	<logic:present name="MESSAGEINFO" scope="request">
	<logic:present name="LIENS" scope="request">
	<logic:present name="MESSAGELIENS" scope="request">
		
		<bean:define id="titre" name="TITRE" type="String"/>
		<bean:define id="messageInfo" name="MESSAGEINFO" type="String"/>
		<bean:define id="liens" name="LIENS" type="java.util.ArrayList"/>
		<bean:define id="messageLiens" name="MESSAGELIENS" type="java.util.ArrayList"/>
			
		<logic:present name="entreprise" scope="session">				
			<head>
				<title><%=titre %></title>
			</head>
			<body>
				<div align=center>
						<%=messageInfo %>
						<logic:iterate id="lien" name="liens" indexId="i">
							<p><a href="<%=liens.get(i)%>"><%=messageLiens.get(i) %></a></p>
						</logic:iterate>
					</div>
			</body>					
		</logic:present>
		
		
		<logic:present name="departement" scope="session">				
			<head>
				<title><%=titre %></title>
			</head>
			<body>
				<div align=center>
						<%=messageInfo %>
						<logic:iterate id="lien" name="liens" indexId="i">
							<p><a href="<%=liens.get(i)%>"><%=messageLiens.get(i) %></a></p>
						</logic:iterate>
					</div>
			</body>					
		</logic:present>
		
		
		<logic:present name="etudiant" scope="session">				
			<head>
				<title><%=titre %></title>
			</head>
			<body>
				<div align=center>
						<%=messageInfo %>
						<logic:iterate id="lien" name="liens" indexId="i">
							<p><a href="<%=liens.get(i)%>"><%=messageLiens.get(i) %></a></p>
						</logic:iterate>
					</div>
			</body>					
		</logic:present>
		
	</logic:present>
	</logic:present>
	</logic:present>
	</logic:present>
	
	
	<BR/>
	<BR/>
	<BR/>
	<div align=center>	
		<html:errors/>
	</div>

</html:html>
